package com.yanqu.road.server.manger.config.grandchild.skill.condition;

import com.yanqu.road.entity.grandchild.GrandChildData;
import com.yanqu.road.server.manger.config.grandchild.skill.param.GrandChildSkillConditionParam;

public class SkillConditionTAA {

    public static boolean canRandom(GrandChildData data, GrandChildSkillConditionParam param) {
        // 取值
        int value1 = data.getFlairList().stream().mapToInt(Integer::intValue).sum();
        int value2 = param.getValue();

        // 比较
        return param.getFlag().getResult(value1, value2);
    }

}
